package breeze.lepei.der.utils;

import android.content.Context;
import android.content.SharedPreferences;

public class AppSettings {
    
    private static AppSettings data;
	private SharedPreferences sp;
	public static AppSettings getInstance(Context context){
		if(data==null){
			data=new AppSettings(context);
		}
		return data;
	}

	public AppSettings(Context context){
		sp=context.getSharedPreferences("app_settings",Context.MODE_PRIVATE);
	}
	
	public void setNotice(String notice){
		sp.edit().putString("notice",notice).commit();
	}
    
	public String getNotice(){
		return sp.getString("notice","");
	}
}
